package ooday02;

class Student extends Person{
    int stuId;
    String className;



    public Student(String name, int age, String address, String occupation, int stuId, String className){
        super(name, age, address, occupation);
        this.stuId =stuId;
        this.className = className;
    }


    @Override
    void sayHi() {
        System.out.println("大家好，我叫："+name+"今年"+age+"岁了,我的学号是："+stuId+"我的班级是："+className);
    }

    void study(){
        System.out.println(name+occupation+"正在在 "+className+" 学习");
    }

    Student test(){
        return new Student("YiYi",18,"H","同学",1,"翻斗花园5班");
    }
}